package demo.hms.user.dao;

import demo.hms.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserDao {
    User select(@Param("userId") String userId);

    List<User> selectAllUser(@Param("userId") String userId,
                             @Param("userName") String userName,
                             @Param("roleName") String roleName
    );

    int insert(User user);
    int update(User user);
}
